package vma.nicici.ext;

import android.app.ProgressDialog;
import android.content.Context;

public class ProgressDialogManager {

	ProgressDialog progress;
	Context master;
	
	public ProgressDialogManager(Context master) {
		this.master = master;
	}
	
	public void startNew(int messageId) {
		stop();
		progress = ProgressDialog.show(master, "", master.getString(messageId), true);
	}

	public void stop() {
		if (progress != null) {
			progress.dismiss();
		}
	}
	
}
